#ifndef __COLORKEY_H
#define __COLORKEY_H

#include "main.h"

typedef struct {
    int imgWidth;
    int imgHeight;
    SDL_Texture *texture;
    SDL_Renderer *renderer;
    char *imgPath;
} Texture_t;

void initTexture(Texture_t *pTexture, SDL_Renderer *renderer, const char* path);
void loadFromFile(Texture_t *pTexture);
void renderTexture(Texture_t *pTexture, int x, int y);
void freeTexture(Texture_t *pTexture);

#endif // __COLORKEY_H
